package com.hzw.dao;

import com.hzw.entity.Reserve;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ReserveDao {
    /**
     * 通过id更新数据
     * @param reserve
     */
    void updateById(Reserve reserve);

    /**
     * 查询预定
     * @param reserve
     * @return
     */
    List<Reserve> select(Reserve reserve);

    /**
     * 新增预定
     * @param reserve
     */
    int insert(Reserve reserve);

    /**
     * 删除预定
     * @param reserve
     */
    void delById (Reserve reserve);

}
